<#assign pageName="编辑[${tableName}]">
<@override name="head-styles">
</@override>
<@override name="page-content">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}</legend>
    </fieldset>
    <form class="layui-form padding-10" lay-filter="formTableAdd">
        <@ctrl.Textbox path="codeTable.id" labelText="ID" required="required" attributes="readonly"/>
        <@ctrl.Textbox path="codeTable.name" labelText="名称"  required="required"/>
        <@ctrl.Textbox path="codeTable.pym" labelText="拼音码" />
        <@ctrl.Textbox path="codeTable.pxh" labelText="排序号" />
        <@ctrl.FormAction backURL="../management"/>
    </form>
</@override>
<@override name="page-scripts">
    <script>
        $(function(){
            layui.use(['form','layer', 'jquery'], function(){
                var form = layui.form;
                var layer=layui.layer;
                $=layui.jquery;
                //监听提交
                form.on('submit(submit)', function(data){
                    submitData(data.field, '${contextPath}/codetable/${tableName}/edit', function(){location.href="${contextPath}/codetable/${tableName}/management";});
                    return false;
                });
            })
        })
    </script>
</@override>
<@extends name="/layout/basepage.html"/> 